from collections.abc import Iterator, Iterable

a = [1, 2]
b = iter(a)
print(isinstance(a, Iterable))
print(isinstance(b, Iterator))
